<?php

namespace app\controllers;

use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\web\Response;
use yii\filters\VerbFilter;
use app\models\LoginForm;
use app\models\ContactForm;

class TestController extends Controller
{


    public function actionTest()
   {
       $client = new \Yar_client('http://yii.king866.com/yar/user-server/index');
       $client->SetOpt(YAR_OPT_PACKAGER,"php"); // 设置传输方式
       echo $client->actionTest();
        exit;
   }

}
